/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.toto.product;

import java.util.Collection;
import javax.ejb.CreateException;
import javax.ejb.EJBLocalHome;
import javax.ejb.FinderException;

/**
 *
 * @author Administrator
 */
public interface ProductLocalHome extends EJBLocalHome
{
  ProductLocal create(String productID, String name, String description, double basePrice) throws CreateException;

  public ProductLocal findByPrimaryKey(ProductPK pk) throws FinderException;

  public Collection findByName(String name) throws FinderException;

  public Collection findByDescription(String description) throws FinderException;

  public Collection findByBasePrice(double basePrice) throws FinderException;

  public Collection findExpensiveProducts(double minPrice) throws FinderException;

  public Collection findCheapProducts(double maxPrice) throws FinderException;

  public Collection findAllProduct() throws FinderException;
}
